Package com.netscape.certsrv.key
Class KeyRequestClient
java.lang.Object
com.netscape.certsrv.client.Client
com.netscape.certsrv.key.KeyRequestClient
- Author:
- Endi S. Dewata, Abhishek Koneru
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Approve a secret recovery requestvoid
Cancel a secret recovery requestReturn a KeyRequestInfo object for a specific request.listRequests
(String requestState, String requestType) listRequests
(String requestState, String requestType, String realm) Search key requests in the DRM based on the state/type of the requests.listRequests
(String requestState, String requestType, String clientKeyID, RequestId start, Integer pageSize, Integer maxResults, Integer maxTime, String realm) List/Search key requests in the DRMvoid
Reject a secret recovery requestMethods inherited from class com.netscape.certsrv.client.Client
addClient, delete, delete, get, get, get, getClient, getCollection, getName, getSubsystem, getTargetPath, patch, post, post, post, post, put, removeClient, target
-
Field Details
-
logger
public static org.slf4j.Logger logger
-
-
Constructor Details
-
KeyRequestClient
- Throws:
Exception
-
-
Method Details
-
listRequests
public KeyRequestInfoCollection listRequests(String requestState, String requestType, String realm) throws Exception Search key requests in the DRM based on the state/type of the requests.- Parameters:
requestState
- -- State of the requests to be queried.requestType
- -- Type of the requests to be queried.realm
- -- Authz Realm- Returns:
- a KeyRequestCollection object.
- Throws:
Exception
-
listRequests
public KeyRequestInfoCollection listRequests(String requestState, String requestType) throws Exception - Throws:
Exception
-
listRequests
public KeyRequestInfoCollection listRequests(String requestState, String requestType, String clientKeyID, RequestId start, Integer pageSize, Integer maxResults, Integer maxTime, String realm) throws Exception List/Search key requests in the DRM- Parameters:
requestState
- -- State of the requests to be queried.requestType
- -- Type of the requests to be queried.clientKeyID
- -- Client Key Identifierstart
- -- Start index of listpageSize
- -- Size of the list to be returned.maxResults
- -- Maximum number of requests to be fetchedmaxTime
- -- Maximum time for the operation to takerealm
- -- Authz Realm- Returns:
- a KeyRequestInfoCollection object.
- Throws:
Exception
-
getRequestInfo
Return a KeyRequestInfo object for a specific request.- Parameters:
id
- -- A Request Id object- Returns:
- the KeyRequestInfo object for a specific request.
- Throws:
Exception
-
approveRequest
Approve a secret recovery request- Parameters:
id
- -- Id of the request- Throws:
Exception
-
rejectRequest
Reject a secret recovery request- Parameters:
id
- -- Id of the request- Throws:
Exception
-
cancelRequest
Cancel a secret recovery request- Parameters:
id
- -- Id of the request- Throws:
Exception
-